package com.jsoft.jsofted.sys.service.impl;

import com.jsoft.jsofted.sys.entity.ActorEntity;
import com.jsoft.jsofted.sys.mapper.ActorMapper;
import com.jsoft.jsofted.sys.service.ActorService;
import com.jsoft.jsofted.framework.service.impl.CocServiceImpl;
import com.jsoft.jsofted.sys.vo.ActorTreeMaker;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("actorService")
public class ActorServiceImpl extends CocServiceImpl<ActorMapper, ActorEntity> implements ActorService {

    @Override
    public List queryTree(Map queryParams) {
        List list = list(parseQueryWrapper(queryParams));
        List tree = ActorTreeMaker.make(list);

        return tree;
    }
}
